package com.trdcore.zyzkt.controller;


import com.trdcore.zyzkt.resp.ResultData;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/admin/vod/user")
@Tag(name = "用户接口",description = "用户登录和信息管理")

//@Tag(name = "教师微服务模块",description = "教师管理")
public class UserLoginController {

    @PostMapping("/login")
    public ResultData login(){
        Map<String,Object> map=new HashMap<>();
        map.put("token","admin-token");
        return ResultData.success(map);
    }

    @GetMapping("/info")
    public ResultData info(){
        Map<String,Object> map=new HashMap<>();
        map.put("roles","admin");
        map.put("introduction","I am a super administrator");
        map.put("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
        map.put("name","Super Admin");
        return ResultData.success(map);
    }

}
